#include "precompiled.h"
#include "ui/mainwindow.h"
#include "exception.h"
using namespace weo::ui;
using namespace weo::engine::item;
using namespace std;
void createDB()
{
    Itemdatabase * db = new Itemdatabase();
    Itemparser *ip = new Itemparser(db);
    ip->parseFiles();
    db->SaveDB("itemdb.xbz");
}
int main(int argc, char* argv[])
{
    GC_INIT();
    //createDB();
    //return 0;
    enableMinidump();
    QApplication app( argc, argv );
    // create a new instance of MainWindow
    MainWindow mainWindow;	
    mainWindow.show();

    // Enters the main event loop and waits until exit() is called 
    // or the main widget is destroyed, and Returns the value that 
    // was set via to exit() (which is 0 if exit() is called via quit()). 
    return app.exec();
}